package cn.edu.zjut.mina.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import cn.edu.zjut.mina.po.UserInfo;

public interface UserInfoRepository  extends JpaRepository<UserInfo, Integer>, JpaSpecificationExecutor <UserInfo> {
//	@Query(nativeQuery=true, value="select u from userInfo where u.userId= = :userId")
//	UserInfo findByUserId(@Param("userId")String userId);
	
	UserInfo findByUserId(String userId);
	
	UserInfo findByOpenid(String openid);
	
	UserInfo findByUnionid(String unionid);
}
